﻿using UniversalEditor.Base.Mvvm;

namespace UniversalEditor.Base.MenuBarItems
{
	public abstract class MenuItemBase : ViewModelBase
	{
		private bool _enabled = true;

		public abstract string Name { get; }
		public abstract string Icon { get; }

		public bool Enabled
		{
			get { return _enabled; }
			set
			{
				if (_enabled == value)
					return;

				_enabled = value;
				RaisePropertyChanged("Enabled");
			}
		}
	}
}
